<?php $this->layout('docs/base'); ?>
<?php $this->start('intro') ?>
    <style>
        .intro {
            margin: 0;
            padding-top: 0;

        }

        .menu > li > a {
            font-weight: bold;
            font-size: 1rem;
        }

        .bd-sidebar {
            position: relative;
            top: 0;
            z-index: 1000;
            border: 0;
            height: 100vh;
        }

        .submenu {
            padding-left: 0.5rem;
        }

        .bd-links {
            background-color: #fff;
            /*border: 1px solid #000;*/
            height: unset;
            max-height: unset;
        }

        .bd-toc-link {
            font-weight: normal;
            font-size: 0.9rem;
        }

        .bd-toc-item {
            list-style: none;
            font-weight: normal;
        }
    </style>
    <section class="intro">
        <div class="container">
            <div class="row">
                <div class="col-3">
                    <div class="bd-sidebar">
                        <nav class="bd-links">
                            <?php echo $menu; ?>
                        </nav>
                    </div>
                </div>
                <div style="margin-top: 20px" class="col-9 markdown-body prettify linenums">
                    <?php if (isset($art['description'])): ?>
                        <?php echo markdown($art['description']); ?>
                    <?php else: ?>
                        <div class="alert alert-danger" role="alert">
                            404,迷失在了文档丛林中……
                        </div>
                    <?php endif; ?>
                </div>
            </div>
    </section>
<?php $this->stop() ?>